package cn.kgc.game.pojo;

public class Player {
    private Equip armet;//头盔
    private Equip loricae;//铠甲
    private Equip boot;//靴子
    private Equip ring;//指环

    public void show(){
        System.out.println("装\t备\t\t"+armet.getName()+"\t"+loricae.getName()+"\t"+boot.getName()+"\t"+ring.getName());
        System.out.println("攻速增效\t\t\t"+armet.getSpeedPlus()+"\t\t\t"+loricae.getSpeedPlus()+"\t\t\t"+boot.getSpeedPlus()+"\t\t\t"+ring.getSpeedPlus());
        System.out.println("攻击增效\t\t\t"+armet.getAttackPlus()+"\t\t\t"+loricae.getAttackPlus()+"\t\t\t"+boot.getAttackPlus()+"\t\t\t"+ring.getAttackPlus());
        System.out.println("防御增效\t\t\t"+armet.getDefencePlus()+"\t\t\t"+loricae.getDefencePlus()+"\t\t\t"+boot.getDefencePlus()+"\t\t\t"+ring.getDefencePlus());
    }
    public void updateRing(Equip equip) {
        if(equip.getType().equals("头盔")){
            System.out.println(this.armet.getName()+"升级为："+equip.getName());
            this.armet=equip;
        }
        if(equip.getType().equals("铠甲")){
            System.out.println(this.loricae.getName()+"升级为："+equip.getName());
            this.loricae=equip;
        }
        if(equip.getType().equals("靴子")){
            System.out.println(this.boot.getName()+"升级为："+equip.getName());
            this.boot=equip;
        }
        if(equip.getType().equals("指环")){
            System.out.println(this.ring.getName()+"升级为："+equip.getName());
            this.ring=equip;
        }
    }
    public Equip getArmet() {
        return armet;
    }

    public void setArmet(Equip armet) {
        this.armet = armet;
    }

    public Equip getLoricae() {
        return loricae;
    }

    public void setLoricae(Equip loricae) {
        this.loricae = loricae;
    }

    public Equip getBoot() {
        return boot;
    }

    public void setBoot(Equip boot) {
        this.boot = boot;
    }

    public Equip getRing() {
        return ring;
    }

    public void setRing(Equip ring) {
        this.ring = ring;
    }
}
